home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d26
/
inf_src.arc
/
WDIR.C
< prev
next >
Wrap
C/C++ Source or Header
|
1986-03-14
|
306b
|
20 lines
#include <stdio.h>
#include "routine.h"
#include "weather.h"
main()
{
FILE *dataFile ;
int value[20] ;
dataFile = fopen("WEATHER.DAT","rb") ;
fread(value,2,20,dataFile) ;
fclose(dataFile) ;
if(value[2]==WEST)
return(RETURN_ROUTINE_TRUE) ;
else
return(RETURN_ROUTINE_FALSE) ;
}